﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ChildPageJs {
    <script src="/Scripts/App_Scripts/VipCardCreate.js" type="text/javascript"></script>
    <script src="/Scripts/WebCalendar.js" type="text/javascript"></script>
    <script src="/Content/layer/layer.min.js" type="text/javascript"></script>
    <script src="/Content/layer/extend/layer.ext.js" type="text/javascript"></script>
}
<form id="fmSave" name="fmSave">
    <div class="titstyle01 clearfix">
        <strong>会员卡管理</strong>
    </div>
    <div class="boxstyle01 clearfix pt25 pb10 pl10">
        <table id="tbl">
            <tr>
                <td>
                    <span class="cf60">*</span>@Html.Label("Code", "卡号")：
                </td>
                <td>
                    <input type="text" id="Code" name="Code" class="slcw120 f_l m5" />
                    <span id="txtCodeMsg" class="slcw120s f_l m5">(初始密码888888)</span>
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Dic_CardType", "卡类型")：
                </th>
                <td>
                    @Html.DropDownList("Dic_CardType", (List<SelectListItem>)ViewData["selCardType"], new { @class = "slcw128 m5" })
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60"></span>
                </th>
                <td>
                    <ul id="ulCard1">
                        <li class="f_l" id="liCardLevel">等级：@Html.DropDownList("Dic_CardLevel", (List<SelectListItem>)ViewData["selCardLevel"], new { @class = "slcw128 m5" }) </li>
                        <li class="f_l">首充：<input type="text" id="Recharge" name="Recharge" value="0" class="slcw120 m5" /></li>
                        <li class="f_l">余额：<input type="text" id="Balance" name="Balance" value="0" class="slcw120 m5" /></li>
                        <li class="f_l dis_n" id="liEndDate">
                        有效期：<input type="text" id="EndDate" name="EndDate" onclick="SelectDate(this,'yyyy-MM-dd')" readonly="readonly" class="slcw120 m5" />
                            <label class="m5"><input type="checkbox" id="chkEver" name="rdoProduct"  value="2999-01-01" />永久有效</label>
                        </li>
                    </ul>
                    <div id="dvCount" class="dis_n">
                        <p class="cf60">计次卡：首充 3000，余额 50 。表示:3000元次卡，可使用50次。</p>
                        <div class="m10">   
                            <span>限购产品列表:</span>                         
                            <input type="button" id="btnSelect" name="btnSelect" value="选择限购产品" />
                            <input type="hidden" id="Could_Buy" name="Could_Buy" value="all" class="slcw120 m5" />
                        </div>
                        <ul id="couldBuyList"></ul>
                    </div>
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("RealName", "姓名")：
                </th>
                <td>
                    <input type="text" id="RealName" name="RealName" class="slcw120s f_l m5" />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">*</span>@Html.Label("Phone", "电话")：
                </th>
                <td>
                    <input type="text" id="Phone" name="Phone" class="slcw120s f_l m5" />
                </td>
            </tr>
            <tr align="left">
                <th>
                    <span class="cf60">&nbsp;</span>@Html.Label("Birthday", "生日")：
                </th>
                <td>
                    <input type="text" id="Birthday" name="Birthday" onclick="SelectDate(this,'yyyy-MM-dd')" readonly="readonly" class="slcw120 f_l m5" />
                </td>
            </tr>
            <tr align="left">
            <tr align="left">
                <th>
                    <span class="cf60">&nbsp;</span>@Html.Label("Remark", "备注")：
                </th>
                <td>
                    <textarea style="width:350px; height: 100px;" class="f_l m5" cols="10" rows="20" id="Remark" name="Remark"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="button" value="确 定" class="btn02 f_l m15" id="btnSave" />
                    <input type="button" class="btn02 f_l m15" id="btnCancel" value="取 消" />
                </td>
            </tr>
        </table>
    </div>
</form>
<div id="dvProducts" class="dis_n m5">
    <p class="m5">(一张次卡最多只能设置1种限购产品)</p>
    <div>
        产品类型：<select class="slcw128 m5" id="selPtype" name="selPtype"></select>
    </div>
    <div style="overflow-y:auto;">
        <ul id="plist">
            <li class="f_l m5">
            </li>
        </ul>
    </div>
    <!--分页控件-->
    <div class="c05a t_c">

        <a href="javascript:void(0)" id="btnFirst">首页</a> | <a href="javascript:void(0);"
                                                               id="btnPre" onclick="javascript:PageIndexChanging(parseInt(Pager.CurrentPage)-1)">上一页</a>
        <span>|</span><span style="margin-left:2px;" id="CurrentPage">当前页:1</span> | <a style="margin-left:2px;" href="javascript:void(0);" id="btnNext"
                                                                                        onclick="javascript:PageIndexChanging(parseInt(Pager.CurrentPage)+1)">下一页</a> | <a href="javascript:void(0)"
                                                                                                                                                                           id="btnLast">末页</a>|   &nbsp;&nbsp;第:
        <input type="text" id="txtJumpPage" style="width:40px" onkeypress="JumpPageKeyPress()" maxlength="7" /> 页<input type="button" id="btnJump" class="ml5" value="go" onclick="GoPage()" />
        <script src="/Scripts/AjaxPager.js" type="text/javascript"></script>
    </div>
</div>


